﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class FloorTablsInfoConfig : EntityTypeConfiguration<FloorTablsInfo>
    {
        public FloorTablsInfoConfig()
        {
            ToTable("Himall_FloorTabls");
            Property(item => item.Name).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_HomeFloors).WithMany(x => x.Himall_FloorTabls).HasForeignKey(x => x.FloorId);
          
        }
    }
}
